import os


class BasePath(object):
    '''公共路径类'''
    PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #根目录
    EXTS_PATH = os.path.join(PROJECT_ROOT, "ExtTools")
    DATA_DIR = os.path.join(PROJECT_ROOT, "Data") #Data 目录
    DATA_DRIVER_DIR = os.path.join(DATA_DIR, "DataDriver")
    DATA_ELEMENT_DIR = os.path.join(DATA_DIR, "DataElement")
    DATA_TEMP_DIR = os.path.join(DATA_DIR, "Temp")
    SCREENSHOT_DIR = os.path.join(DATA_TEMP_DIR, "Screenshots")
    SCREENSHOT_PIC = os.path.join(SCREENSHOT_DIR, "error_pic.png")
    TESTCASES = os.path.join(DATA_TEMP_DIR,'testcases.yaml')
    TEMPCASES = os.path.join(DATA_TEMP_DIR,'tempcases.yaml')
    DRIVER_DIR = os.path.join(PROJECT_ROOT, "Driver")
    TEST_SUIT_DIR = os.path.join(PROJECT_ROOT,'TestSuits')
    CONFIG_FILE = os.path.join(PROJECT_ROOT,'Config','配置文件.ini')
    REPORTS_DIR = os.path.join(PROJECT_ROOT,'Reports')
    ALLURE_RESULT = os.path.join(REPORTS_DIR,'ALLURE','Result')
    ALLURE_REPORT = os.path.join(REPORTS_DIR,'ALLURE','Report')
    HTML_REPORT = os.path.join(REPORTS_DIR,'HTML')
    XML_REPORT = os.path.join(REPORTS_DIR,'XML')

if __name__=='__main__':
    print(BasePath.DATA_ELEMENT_DIR)